3.252 \(\int \csc ^2(e+f x) (a+b \sec (e+f x))^{3/2} \, dx\)

Optimal. Leaf size=228 \[ -\frac {\cot (e+f x) (a+b \sec (e+f x))^{3/2}}{f}+\frac {3 (a-b) \sqrt {a+b} \cot (e+f x) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (\sec (e+f x)+1)}{a-b}} F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{f}-\frac {3 (a-b) \sqrt {a+b} \cot (e+f x) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (\sec (e+f x)+1)}{a-b}} E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{f} \]

[Out]

-cot(f*x+e)*(a+b*sec(f*x+e))^(3/2)/f-3*(a-b)*cot(f*x+e)*EllipticE((a+b*sec(f*x+e))^(1/2)/(a+b)^(1/2),((a+b)/(a
-b))^(1/2))*(a+b)^(1/2)*(b*(1-sec(f*x+e))/(a+b))^(1/2)*(-b*(1+sec(f*x+e))/(a-b))^(1/2)/f+3*(a-b)*cot(f*x+e)*El
lipticF((a+b*sec(f*x+e))^(1/2)/(a+b)^(1/2),((a+b)/(a-b))^(1/2))*(a+b)^(1/2)*(b*(1-sec(f*x+e))/(a+b))^(1/2)*(-b
*(1+sec(f*x+e))/(a-b))^(1/2)/f

________________________________________________________________________________________

Rubi [A]  time = 0.24, antiderivative size = 228, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.174, Rules used = {3875, 3829, 3832, 4004} \[ -\frac {\cot (e+f x) (a+b \sec (e+f x))^{3/2}}{f}+\frac {3 (a-b) \sqrt {a+b} \cot (e+f x) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (\sec (e+f x)+1)}{a-b}} F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{f}-\frac {3 (a-b) \sqrt {a+b} \cot (e+f x) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (\sec (e+f x)+1)}{a-b}} E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{f} \]

Antiderivative was successfully verified.

[In]

Int[Csc[e + f*x]^2*(a + b*Sec[e + f*x])^(3/2),x]

[Out]

(-3*(a - b)*Sqrt[a + b]*Cot[e + f*x]*EllipticE[ArcSin[Sqrt[a + b*Sec[e + f*x]]/Sqrt[a + b]], (a + b)/(a - b)]*
Sqrt[(b*(1 - Sec[e + f*x]))/(a + b)]*Sqrt[-((b*(1 + Sec[e + f*x]))/(a - b))])/f + (3*(a - b)*Sqrt[a + b]*Cot[e
 + f*x]*EllipticF[ArcSin[Sqrt[a + b*Sec[e + f*x]]/Sqrt[a + b]], (a + b)/(a - b)]*Sqrt[(b*(1 - Sec[e + f*x]))/(
a + b)]*Sqrt[-((b*(1 + Sec[e + f*x]))/(a - b))])/f - (Cot[e + f*x]*(a + b*Sec[e + f*x])^(3/2))/f

Rule 3829

Int[csc[(e_.) + (f_.)*(x_)]*Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Dist[a - b, Int[Csc[e + f
*x]/Sqrt[a + b*Csc[e + f*x]], x], x] + Dist[b, Int[(Csc[e + f*x]*(1 + Csc[e + f*x]))/Sqrt[a + b*Csc[e + f*x]],
 x], x] /; FreeQ[{a, b, e, f}, x] && NeQ[a^2 - b^2, 0]

Rule 3832

Int[csc[(e_.) + (f_.)*(x_)]/Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Simp[(-2*Rt[a + b, 2]*Sqr
t[(b*(1 - Csc[e + f*x]))/(a + b)]*Sqrt[-((b*(1 + Csc[e + f*x]))/(a - b))]*EllipticF[ArcSin[Sqrt[a + b*Csc[e +
f*x]]/Rt[a + b, 2]], (a + b)/(a - b)])/(b*f*Cot[e + f*x]), x] /; FreeQ[{a, b, e, f}, x] && NeQ[a^2 - b^2, 0]

Rule 3875

Int[(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_))^(m_)/cos[(e_.) + (f_.)*(x_)]^2, x_Symbol] :> Simp[(Tan[e + f*x]*(a
+ b*Csc[e + f*x])^m)/f, x] + Dist[b*m, Int[Csc[e + f*x]*(a + b*Csc[e + f*x])^(m - 1), x], x] /; FreeQ[{a, b, e
, f, m}, x]

Rule 4004

Int[(csc[(e_.) + (f_.)*(x_)]*(csc[(e_.) + (f_.)*(x_)]*(B_.) + (A_)))/Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)
], x_Symbol] :> Simp[(-2*(A*b - a*B)*Rt[a + (b*B)/A, 2]*Sqrt[(b*(1 - Csc[e + f*x]))/(a + b)]*Sqrt[-((b*(1 + Cs
c[e + f*x]))/(a - b))]*EllipticE[ArcSin[Sqrt[a + b*Csc[e + f*x]]/Rt[a + (b*B)/A, 2]], (a*A + b*B)/(a*A - b*B)]
)/(b^2*f*Cot[e + f*x]), x] /; FreeQ[{a, b, e, f, A, B}, x] && NeQ[a^2 - b^2, 0] && EqQ[A^2 - B^2, 0]

Rubi steps

\begin {align*} \int \csc ^2(e+f x) (a+b \sec (e+f x))^{3/2} \, dx &=-\frac {\cot (e+f x) (a+b \sec (e+f x))^{3/2}}{f}+\frac {1}{2} (3 b) \int \sec (e+f x) \sqrt {a+b \sec (e+f x)} \, dx\\ &=-\frac {\cot (e+f x) (a+b \sec (e+f x))^{3/2}}{f}+\frac {1}{2} (3 (a-b) b) \int \frac {\sec (e+f x)}{\sqrt {a+b \sec (e+f x)}} \, dx+\frac {1}{2} \left (3 b^2\right ) \int \frac {\sec (e+f x) (1+\sec (e+f x))}{\sqrt {a+b \sec (e+f x)}} \, dx\\ &=-\frac {3 (a-b) \sqrt {a+b} \cot (e+f x) E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (1+\sec (e+f x))}{a-b}}}{f}+\frac {3 (a-b) \sqrt {a+b} \cot (e+f x) F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (e+f x))}{a+b}} \sqrt {-\frac {b (1+\sec (e+f x))}{a-b}}}{f}-\frac {\cot (e+f x) (a+b \sec (e+f x))^{3/2}}{f}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 11.25, size = 276, normalized size = 1.21 \[ \frac {\cos (e+f x) (a+b \sec (e+f x))^{3/2} (\csc (e+f x) (-a \cos (e+f x)-b)+3 b \sin (e+f x))}{f (a \cos (e+f x)+b)}+\frac {3 b (a+b \sec (e+f x))^{3/2} \left (-\tan \left (\frac {1}{2} (e+f x)\right ) (a \cos (e+f x)+b)-\frac {(a+b) \sqrt {\frac {a \cos (e+f x)+b}{(a+b) (\cos (e+f x)+1)}} \left (E\left (\sin ^{-1}\left (\tan \left (\frac {1}{2} (e+f x)\right )\right )|\frac {a-b}{a+b}\right )-F\left (\sin ^{-1}\left (\tan \left (\frac {1}{2} (e+f x)\right )\right )|\frac {a-b}{a+b}\right )\right )}{\sqrt {\frac {\cos (e+f x)}{\cos (e+f x)+1}}}\right )}{f \sqrt {\sec ^2\left (\frac {1}{2} (e+f x)\right )} \sec ^{\frac {3}{2}}(e+f x) \sqrt {\cos ^2\left (\frac {1}{2} (e+f x)\right ) \sec (e+f x)} (a \cos (e+f x)+b)^2} \]

Antiderivative was successfully verified.

[In]

Integrate[Csc[e + f*x]^2*(a + b*Sec[e + f*x])^(3/2),x]

[Out]

(Cos[e + f*x]*(a + b*Sec[e + f*x])^(3/2)*((-b - a*Cos[e + f*x])*Csc[e + f*x] + 3*b*Sin[e + f*x]))/(f*(b + a*Co
s[e + f*x])) + (3*b*(a + b*Sec[e + f*x])^(3/2)*(-(((a + b)*Sqrt[(b + a*Cos[e + f*x])/((a + b)*(1 + Cos[e + f*x
]))]*(EllipticE[ArcSin[Tan[(e + f*x)/2]], (a - b)/(a + b)] - EllipticF[ArcSin[Tan[(e + f*x)/2]], (a - b)/(a +
b)]))/Sqrt[Cos[e + f*x]/(1 + Cos[e + f*x])]) - (b + a*Cos[e + f*x])*Tan[(e + f*x)/2]))/(f*(b + a*Cos[e + f*x])
^2*Sqrt[Sec[(e + f*x)/2]^2]*Sec[e + f*x]^(3/2)*Sqrt[Cos[(e + f*x)/2]^2*Sec[e + f*x]])

________________________________________________________________________________________

fricas [F]  time = 0.65, size = 0, normalized size = 0.00 \[ {\rm integral}\left ({\left (b \csc \left (f x + e\right )^{2} \sec \left (f x + e\right ) + a \csc \left (f x + e\right )^{2}\right )} \sqrt {b \sec \left (f x + e\right ) + a}, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(csc(f*x+e)^2*(a+b*sec(f*x+e))^(3/2),x, algorithm="fricas")

[Out]

integral((b*csc(f*x + e)^2*sec(f*x + e) + a*csc(f*x + e)^2)*sqrt(b*sec(f*x + e) + a), x)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (b \sec \left (f x + e\right ) + a\right )}^{\frac {3}{2}} \csc \left (f x + e\right )^{2}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(csc(f*x+e)^2*(a+b*sec(f*x+e))^(3/2),x, algorithm="giac")

[Out]

integrate((b*sec(f*x + e) + a)^(3/2)*csc(f*x + e)^2, x)

________________________________________________________________________________________

maple [B]  time = 1.39, size = 849, normalized size = 3.72 \[ \text {result too large to display} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(csc(f*x+e)^2*(a+b*sec(f*x+e))^(3/2),x)

[Out]

1/f*(-1+cos(f*x+e))^2*(3*cos(f*x+e)*(cos(f*x+e)/(1+cos(f*x+e)))^(1/2)*((b+a*cos(f*x+e))/(1+cos(f*x+e))/(a+b))^
(1/2)*sin(f*x+e)*EllipticE((-1+cos(f*x+e))/sin(f*x+e),((a-b)/(a+b))^(1/2))*a*b+3*cos(f*x+e)*b^2*(cos(f*x+e)/(1
+cos(f*x+e)))^(1/2)*((b+a*cos(f*x+e))/(1+cos(f*x+e))/(a+b))^(1/2)*sin(f*x+e)*EllipticE((-1+cos(f*x+e))/sin(f*x
+e),((a-b)/(a+b))^(1/2))-3*cos(f*x+e)*(cos(f*x+e)/(1+cos(f*x+e)))^(1/2)*((b+a*cos(f*x+e))/(1+cos(f*x+e))/(a+b)
)^(1/2)*sin(f*x+e)*EllipticF((-1+cos(f*x+e))/sin(f*x+e),((a-b)/(a+b))^(1/2))*a*b-3*cos(f*x+e)*b^2*(cos(f*x+e)/
(1+cos(f*x+e)))^(1/2)*((b+a*cos(f*x+e))/(1+cos(f*x+e))/(a+b))^(1/2)*sin(f*x+e)*EllipticF((-1+cos(f*x+e))/sin(f
*x+e),((a-b)/(a+b))^(1/2))+3*(cos(f*x+e)/(1+cos(f*x+e)))^(1/2)*((b+a*cos(f*x+e))/(1+cos(f*x+e))/(a+b))^(1/2)*s
in(f*x+e)*EllipticE((-1+cos(f*x+e))/sin(f*x+e),((a-b)/(a+b))^(1/2))*a*b+3*b^2*(cos(f*x+e)/(1+cos(f*x+e)))^(1/2
)*((b+a*cos(f*x+e))/(1+cos(f*x+e))/(a+b))^(1/2)*sin(f*x+e)*EllipticE((-1+cos(f*x+e))/sin(f*x+e),((a-b)/(a+b))^
(1/2))-3*(cos(f*x+e)/(1+cos(f*x+e)))^(1/2)*((b+a*cos(f*x+e))/(1+cos(f*x+e))/(a+b))^(1/2)*sin(f*x+e)*EllipticF(
(-1+cos(f*x+e))/sin(f*x+e),((a-b)/(a+b))^(1/2))*a*b-3*b^2*(cos(f*x+e)/(1+cos(f*x+e)))^(1/2)*((b+a*cos(f*x+e))/
(1+cos(f*x+e))/(a+b))^(1/2)*sin(f*x+e)*EllipticF((-1+cos(f*x+e))/sin(f*x+e),((a-b)/(a+b))^(1/2))-a^2*cos(f*x+e
)^2-3*cos(f*x+e)^2*a*b+a*b*cos(f*x+e)-3*cos(f*x+e)*b^2+2*b^2)*(1+cos(f*x+e))^2*((b+a*cos(f*x+e))/cos(f*x+e))^(
1/2)/(b+a*cos(f*x+e))/sin(f*x+e)^5

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (b \sec \left (f x + e\right ) + a\right )}^{\frac {3}{2}} \csc \left (f x + e\right )^{2}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(csc(f*x+e)^2*(a+b*sec(f*x+e))^(3/2),x, algorithm="maxima")

[Out]

integrate((b*sec(f*x + e) + a)^(3/2)*csc(f*x + e)^2, x)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {{\left (a+\frac {b}{\cos \left (e+f\,x\right )}\right )}^{3/2}}{{\sin \left (e+f\,x\right )}^2} \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + b/cos(e + f*x))^(3/2)/sin(e + f*x)^2,x)

[Out]

int((a + b/cos(e + f*x))^(3/2)/sin(e + f*x)^2, x)

________________________________________________________________________________________

sympy [F(-1)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(csc(f*x+e)**2*(a+b*sec(f*x+e))**(3/2),x)

[Out]

Timed out

________________________________________________________________________________________